home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2005 April
/
PCWorld_2005-04_cd.bin
/
software
/
vyzkuste
/
spyware
/
spyware.exe
/
Microsoft Baseline Security Analyzer
/
MBSASetup-EN.msi
/
Data.Cab
/
object.js
< prev
next >
Wrap
Text File
|
2004-08-13
|
485b
|
29 lines
//
// ⌐ 2002-2004, Microsoft Corporation. All rights reserved.
//
function XCreateObject(name)
{
var obj = null;
if( name.substr(0, 18) == "MSXML2.DOMDocument" )
{
var MIN_VERSION = 3;
var MAX_VERSION = 5;
for( v=MIN_VERSION; v<=MAX_VERSION && (obj == null); v++ )
{
try
{
obj = new ActiveXObject("MSXML2.DOMDocument."+v+".0");
}
catch (e) { /* no action */ }
}
}
else
{
obj = new ActiveXObject(name);
}
return obj;
}